<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>模块管理</title> {{>/WEB-INF/pages/common/meta_base.part.html}}
{{>/WEB-INF/pages/common/refs_base.part.html}}
</head>
<body>
	<!-- <div class="container"> -->
	{{>/WEB-INF/pages/common/layout_header.part.html}}

	<div class="container">
		<ul class="breadcrumb">
			<li><a href="{{ctx}}">首页</a></li>
			<li class="active">模块管理</li>
		</ul>
		<hr class="hr1" />
		<br />
		<form id="search-form" class="form-inline" role="form"
			action="{{ctx}}/mam/widget/list-view" method="get">
			<div class="form-group">
				<select class="form-control" id="category_id" name="category_id">
					<option value="">请选择</option> {{#listCategory}}
					<option value="{{id}}">{{name}}</option> {{/listCategory}}
				</select>
			</div>
			<div class="form-group">
				<div class="input-group" style="width: 300px">
					<input type="text" id="so_fieldName" name="name" value="{{name}}"
						class="form-control" /> <span class="input-group-btn">
						<button id="so_go" class="btn btn-default" type="submit">
							<span class="glyphicon glyphicon-search"></span>查找
						</button>
					</span>
				</div>
			</div>
		</form>
		<div class="text-right pad-st-b5">
			<a class="btn btn-primary btn-small tls"
				href="{{ctx}}/mam/widget/add-view">新增模块</a>
		</div>
		<div class="bor-tab bg-st-white">
			{{#list}}
			<div class="bg-bl he35px">
				<strong style="color: #FFFFFF" class="mar-st-l10">{{name}}</strong>
			</div>
			<div class="bor-top">
				{{#listWidgetVO}}
				<div
					class="col-sm-3 col-xs-6 col-md-2 text-center pad-st-b10 bor-ri bor-bot">
					<a href="{{ctx}}/mam/widget/widget-view/{{id}}"> <img
						class="img-rounded info-icon" style="height: 72px; width: 72px;"
						id="widgetIcon{{id}}">
							<p>{{name}}</p> <script type="text/javascript">
								var icon_id = "{{icon_id}}";
								if (icon_id != "") {
									jQuery("#widgetIcon{{id}}")
											.attr("src",
													"{{ctx}}/mam/attachment/download/{{icon_id}}");
								} else {
									jQuery("#widgetIcon{{id}}")
											.attr("src",
													"{{ctx}}/static/bsl/images/defind.png");
								}
							</script></a>
				</div>
				{{/listWidgetVO}}
			</div>
			<div class="hr"></div>
			{{/list}}
		</div>
	</div>
	{{>/WEB-INF/pages/common/layout_footer.part.html}}
</body>
</html>
<script type="text/javascript">
	$("#category_id option[value='{{category_id}}']").attr("selected", true)
</script>
